<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://{$Think.server.HTTP_HOST}__TMPL__Public/" />
<title>用户登录</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/auntion.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" language="JavaScript" type="text/javascript"></script>
<script src="js/auntion.js" language="JavaScript" type="text/javascript"></script>
<script src="js/login.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script language="javascript">
$(function(){
	$("#reg_box").ajaxForm({
		dataType:'json',
		success: function(json)
		{
			if(json.status==0)
			{
				//登录失败
				var h_err = '<em class="orr"><u class="at_msg m_3_e"></u>'+json.info+'</em>';
				var at_text=$("#u_pas").parents(".at_text");
				at_text.attr("class","at_text t_1_e");
				at_text.find("em").remove();
				at_text.append(h_err);
				$("#reg_sub").text("立即登录");
				$("#reg_sub").attr("disabled",false);
			}
			else
			{
				if(json.data!=null)
				{
					document.location=json.data;
				}else{
					document.location="/";	
				}
				
			}
		}
	});
	
	
});
</script>

<script language="javascript">
$(function(){
	$("#e_name").focus();
});
</script>
</head>

<body>
<div class="wrap">
  <include file="Public:header" />
  <div class="main">
    <div class="login_page">
      <div class="reg_box clearfix">
        <div class="tit gray3">
        <b class="gray1 mr15">用户登录</b>
        </div>
      <div class="reg_form">
        <form id="reg_box" name="reg_box" method="post" action="__ACTION__" >
          <dl>
              
             <dd class="clearfix" >
              <em class="lab">邮箱地址:</em>
              <span class="at_text t_1_d">
                <input type="text" value="" id="e_name" name="username" tabindex="1" />
                </span>
              </dd>
          
            <dd class="clearfix">
              <em class="lab">输入密码:</em>
              <span class="at_text t_1_d">
                <input type="password" id="u_pas" name="password" tabindex="2" maxlength="16"/>
                </span>
              </dd>
            <dd class="clearfix" style="height:auto;"><em class="lab"></em><label for="auto_login"><input name="auto_login" type="checkbox" class="auto_login" id="auto_login" value="1"  /> <span class="gray2">下次自动登录</span></label>
              </dd>
            
            <dd class="clearfix">
              <em class="lab"></em>
              <button type="submit" class="btn btn-success" id="reg_sub">立即登录</button>
              </dd>
            </dl>
          </form>
        
		<div class="have_count">
			<h3 class="mb10">还没有海马爸爸会员帐号？</h3>
			<p><button type="button" class="btn btn-success" onclick="document.location='/Passport/reg'">立即注册</button></p>
			<p class="t"><?php //echo Option::get('bloginfo'); ?></p>
		</div>
        <div class="clear"></div>
        
       </div>
     </div>
	</div>
  </div>
	<include file="Public:footer" />
</div>
<script type="text/javascript"> 
new reg(1);
$("#changecode").click(function(){
	var src="/Public/verify?"+Math.random();
	$("#changecode_img").attr('src',src);
});


</script>
</body>
</html>
